﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="jquery-1.8.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        jQuery(document).ready(function () {

            $("#testEnd > input").click(function () {

                $("#testEnd").find("li.a").css("background-color", "red")
                .end().find("li.b").css("background-color", "blue")
                .end();

            });

            $(".foo div#bar:eq(0)").css("background-color", "red");

            jQuery.prototype = jQuery.fn;

            jQuery.fx.valueOf

        });
    
    </script>
</head>
<body>
    <div id="testEnd">
        <input type="button" value="button" />
        <ul>
            <li class="a">2222</li>
            <li>22222</li>
            <li class="b">333333</li>
        </ul>
    </div>

    <div class="foo">
        <div id="bar"></div>
        <div id="bar"></div>
    </div>

</body>
</html>
